package cn.wyf.androidcode.di.api;


import com.google.gson.JsonElement;

import java.util.List;
import java.util.Map;

import cn.wyf.androidcode.bean.FirstVideo;
import cn.wyf.androidcode.bean.Info;
import cn.wyf.androidcode.bean.User;
import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

/**
 * user request interface
 */

public interface RequestApiService {
    @POST("User/getCustLoginInfo")
    Observable<User> requestLogin(@QueryMap Map<String, String> params);

    @GET
    Call<ResponseBody> requestGetCall(@Url String url);

    @GET
    Observable<JsonElement> requestGetCall2(@Url String url);

    @GET("User/getCAddressInfo")
    Observable<List<Info>> requestInfo();


    @GET
    Observable<List<FirstVideo>> requestFirstVideo(@Url String url);
}
